FROM python:3.9-slim-buster
RUN apt-get update && apt-get install -y git
WORKDIR /app
ARG CACHE_DATE=unknown
RUN git clone http://gitlab.devil-developers.ru/medpraktik/medpraktik-bot.git .
RUN echo "Cache date: $CACHE_DATE" && git pull origin
RUN pip install --no-cache-dir -r requirements.txt
CMD ["python", "main.py"]